home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / doc / cupsddk / examples / custom.drv < prev    next >
Encoding:
Text File  |  2009-01-19  |  1.2 KB  |  42 lines

  1. // Include standard font and media definitions
  2. #include <font.defs>
  3. #include <media.defs>
  4.  
  5. // List the fonts that are supported, in this case all standard
  6. // fonts...
  7. Font *
  8.  
  9. // Manufacturer, model name, and version
  10. Manufacturer "Foo"
  11. ModelName "FooJet 2000"
  12. Version 1.0
  13.  
  14. // Each filter provided by the driver...
  15. Filter application/vnd.cups-raster 100 rastertofoo
  16.  
  17. // Supported page sizes
  18. *MediaSize Letter
  19. MediaSize A4
  20.  
  21. // Supported resolutions
  22. *Resolution k 8 0 0 0 "600dpi/600 DPI"
  23.  
  24. // Option Group
  25. Group "Footasm"
  26.  
  27.   // Boolean option
  28.   Option "fooEnhance/Resolution Enhancement" Boolean AnySetup 10
  29.     *Choice True/Yes "<</cupsCompression 1>>setpagedevice"
  30.     Choice False/No "<</cupsCompression 0>>setpagedevice"
  31.  
  32.   // Multiple choice option
  33.   Option "fooOutputType/Output Quality" PickOne AnySetup 10
  34.     *Choice "Auto/Automatic Selection" "<</OutputType(Auto)>>setpagedevice"
  35.     Choice "Text/Optimize for Text" "<</OutputType(Text)>>setpagedevice"
  36.     Choice "Graph/Optimize for Graphics" "<</OutputType(Graph)>>setpagedevice"
  37.     Choice "Photo/Optimize for Photos" "<</OutputType(Photo)>>setpagedevice"
  38.  
  39. // Specify the name of the PPD file we want to generate...
  40. PCFileName "foojet2k.ppd"
  41.  
  42.